<template>
    <div>
      <h3>Item组件</h3>
      <p v-if="id === '001'">鸡丝</p>
      <p v-if="id === '002'">烧杯</p>
      <p v-if="id === '003'">西红柿</p>
      <div>id:{{ id }}-- title:{{ title }}</div>
    </div>
  </template>
  
  <script>
  export default {
    name: "Item",
    data() {
      return {
        paramsId: "",
      };
    },
    props: ["id", "title"],
  };
  </script>
  
  <style></style>